from django.contrib.auth.models import Group, Permission
from rest_framework import serializers

# 组列表序列化器
class GroupsSerialzier(serializers.ModelSerializer):
    """
    组列表序列化器
    """
    class Meta:
        model = Group
        fields = "__all__"

# 获取权限表数据
class PermissionSimpleSerialzier(serializers.ModelSerializer):
    class Meta:
        model = Permission
        fields = "__all__"
